/**
 * Created by Administrator on 2022/8/12.
 */
class Washing {
    //属性主要是用来描述类的，称之为类的成员属性或者类成员变量
    public String brand;
    public String colour;

    //方法主要说明类具有哪些功能，称为类的成员方法
    public void wash(){
        System.out.println(brand+"洗衣");
    }
    public void dry(){
        System.out.println(brand+"烘干");
    }
}

public class Demo{
    public static void main(String[] args) {
        Washing w = new Washing();
        w.brand = "格力";
        w.colour = "白色";
        System.out.println(w.brand);
        System.out.println(w.colour);
        w.wash();
        w.dry();
    }

}
